//
//  IntegralExchangeTableViewCell.m
//  CPICApp
//
//  Created by sinosoft on 13-3-12.
//  Copyright (c) 2013年 lizhiwei. All rights reserved.
//

#import "IntegralExchangeTableViewCell.h"

@implementation IntegralExchangeTableViewCell
@synthesize lblGiftName,lblLeftTag,lblGiftintegral,lblRightTag,lblNum,btnAdd,btnReduce;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        lblGiftName=[[[UILabel alloc]initWithFrame:CGRectMake(8, 10, 120, 23)]autorelease];
        lblLeftTag=[[[UILabel alloc]initWithFrame:CGRectMake(130, 10, 9, 23)]autorelease];
        lblGiftintegral=[[[UILabel alloc]initWithFrame:CGRectMake(140, 10, 42, 23)]autorelease];
        lblRightTag=[[[UILabel alloc]initWithFrame:CGRectMake(180, 10, 30, 23)]autorelease];
        btnAdd=[UIButton buttonWithType:UIButtonTypeCustom];
        btnAdd.frame=CGRectMake(279, 10, 30, 30);
        lblNum=[[[UILabel alloc]initWithFrame:CGRectMake(256, 10, 19, 21)]autorelease];
        btnReduce=[UIButton buttonWithType:UIButtonTypeCustom];
        btnReduce.frame=CGRectMake(210, 10, 30, 30);
        
        [lblGiftName setBackgroundColor:[UIColor clearColor]];
        [lblLeftTag setBackgroundColor:[UIColor clearColor]];
        [lblGiftintegral setBackgroundColor:[UIColor clearColor]];
        [lblRightTag setBackgroundColor:[UIColor clearColor]];
        [btnAdd setBackgroundColor:[UIColor clearColor]];
        [lblNum setBackgroundColor:[UIColor clearColor]];
        [btnReduce setBackgroundColor:[UIColor clearColor]];
        
        lblGiftName.font=[UIFont boldSystemFontOfSize:11.0];
        lblLeftTag.font=[UIFont boldSystemFontOfSize:10.0];
        lblGiftintegral.font=[UIFont boldSystemFontOfSize:14.0];
        lblRightTag.font=[UIFont boldSystemFontOfSize:10.0];
        lblNum.font=[UIFont boldSystemFontOfSize:14.0];
        
        lblLeftTag.text=@"[";
        lblGiftintegral.textAlignment=UITextAlignmentCenter;
        lblRightTag.text=@"积分]";
        lblNum.text=@"0";
        [btnAdd setImage:[UIImage imageNamed:@"AddIntegral.png"] forState:UIControlStateNormal];
        [btnReduce setImage:[UIImage imageNamed:@"ReduceIntegral.png"] forState:UIControlStateNormal];
        
        
        [self.contentView addSubview:lblGiftName];
        [self.contentView addSubview:lblLeftTag];
        [self.contentView addSubview:lblGiftintegral];
        [self.contentView addSubview:lblRightTag];
        [self.contentView addSubview:btnAdd];
        [self.contentView addSubview:lblNum];
        [self.contentView addSubview:btnReduce];

    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
